package com.cn.por.biz.user.dao;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import com.cn.por.biz.user.dto.ProUserDetails;
import com.cn.por.biz.user.dto.UserDO;
import com.cn.por.biz.user.role.dto.Role;
import com.cn.por.biz.user.role.dto.UserRole;

public interface UserDao extends BaseMapper<UserDO> {
	
	public ProUserDetails getUserByName(String username);
	
	public List<Role> getRoleByUid(Integer uid);
	
	public List<ProUserDetails> getUserList();
	
	public int addUser(UserDO user);
	
	public int addUserRole(UserRole userRole);
	
	public List<UserRole> getUserRole(UserRole userRole);
	
}
